package com.observer.observer;

public class Test {
    public static void main(String[] args) {
        WeatherDataServer server = new WeatherDataServer();
        server.registerObserver(new WebSit1Observer());
        //如果有新的观察者 ，直接就再注册一个就好了
        server.registerObserver(new WebSit2BaiduObserver());
        server.setData(1,2,3);
    }
}
